//This file contains the experimental sounds and effects.
void crazySound(){
    delay(8);
}

int sinWaveCounter = 0;
int triWaveCounter = 0;

//Sin waveform template
//created with https://www.daycounter.com/Calculators/Sine-Generator-Calculator.phtml
const byte sinWave[] = {
      0x1388,0x13a7,0x13c5,0x13e4,0x1403,0x1422,0x1440,0x145f,
    0x147e,0x149c,0x14bb,0x14da,0x14f8,0x1517,0x1535,0x1554,
    0x1573,0x1591,0x15b0,0x15ce,0x15ed,0x160b,0x162a,0x1648,
    0x1666,0x1685,0x16a3,0x16c1,0x16e0,0x16fe,0x171c,0x173a,
    0x1758,0x1776,0x1795,0x17b3,0x17d1,0x17ef,0x180c,0x182a,
    0x1848,0x1866,0x1884,0x18a1,0x18bf,0x18dc,0x18fa,0x1917,
    0x1935,0x1952,0x196f,0x198d,0x19aa,0x19c7,0x19e4,0x1a01,
    0x1a1e,0x1a3b,0x1a58,0x1a74,0x1a91,0x1aae,0x1aca,0x1ae7,
    0x1b03,0x1b20,0x1b3c,0x1b58,0x1b74,0x1b90,0x1bac,0x1bc8,
    0x1be4,0x1bff,0x1c1b,0x1c37,0x1c52,0x1c6d,0x1c89,0x1ca4,
    0x1cbf,0x1cda,0x1cf5,0x1d10,0x1d2b,0x1d45,0x1d60,0x1d7a,
    0x1d95,0x1daf,0x1dc9,0x1de3,0x1dfd,0x1e17,0x1e31,0x1e4b,
    0x1e64,0x1e7e,0x1e97,0x1eb0,0x1ec9,0x1ee3,0x1efb,0x1f14,
    0x1f2d,0x1f46,0x1f5e,0x1f76,0x1f8f,0x1fa7,0x1fbf,0x1fd7,
    0x1fef,0x2006,0x201e,0x2035,0x204c,0x2064,0x207b,0x2092,
    0x20a8,0x20bf,0x20d6,0x20ec,0x2102,0x2119,0x212f,0x2144,
    0x215a,0x2170,0x2185,0x219b,0x21b0,0x21c5,0x21da,0x21ef,
    0x2203,0x2218,0x222c,0x2241,0x2255,0x2269,0x227d,0x2290,
    0x22a4,0x22b7,0x22ca,0x22de,0x22f0,0x2303,0x2316,0x2328,
    0x233b,0x234d,0x235f,0x2371,0x2383,0x2394,0x23a6,0x23b7,
    0x23c8,0x23d9,0x23ea,0x23fa,0x240b,0x241b,0x242b,0x243b,
    0x244b,0x245b,0x246a,0x247a,0x2489,0x2498,0x24a7,0x24b6,
    0x24c4,0x24d2,0x24e1,0x24ef,0x24fd,0x250a,0x2518,0x2525,
    0x2532,0x253f,0x254c,0x2559,0x2565,0x2572,0x257e,0x258a,
    0x2596,0x25a1,0x25ad,0x25b8,0x25c3,0x25ce,0x25d9,0x25e3,
    0x25ee,0x25f8,0x2602,0x260c,0x2616,0x261f,0x2628,0x2632,
    0x263b,0x2643,0x264c,0x2654,0x265d,0x2665,0x266d,0x2674,
    0x267c,0x2683,0x268a,0x2691,0x2698,0x269f,0x26a5,0x26ab,
    0x26b1,0x26b7,0x26bd,0x26c2,0x26c8,0x26cd,0x26d2,0x26d6,
    0x26db,0x26df,0x26e3,0x26e7,0x26eb,0x26ef,0x26f2,0x26f6,
    0x26f9,0x26fb,0x26fe,0x2701,0x2703,0x2705,0x2707,0x2709,
    0x270a,0x270c,0x270d,0x270e,0x270f,0x270f,0x2710,0x2710,
    0x2710,0x2710,0x2710,0x270f,0x270e,0x270d,0x270c,0x270b,
    0x270a,0x2708,0x2706,0x2704,0x2702,0x26ff,0x26fd,0x26fa,
    0x26f7,0x26f4,0x26f1,0x26ed,0x26e9,0x26e5,0x26e1,0x26dd,
    0x26d9,0x26d4,0x26cf,0x26ca,0x26c5,0x26c0,0x26ba,0x26b4,
    0x26ae,0x26a8,0x26a2,0x269b,0x2695,0x268e,0x2687,0x267f,
    0x2678,0x2670,0x2669,0x2661,0x2658,0x2650,0x2648,0x263f,
    0x2636,0x262d,0x2624,0x261a,0x2611,0x2607,0x25fd,0x25f3,
    0x25e9,0x25de,0x25d3,0x25c9,0x25be,0x25b2,0x25a7,0x259b,
    0x2590,0x2584,0x2578,0x256c,0x255f,0x2553,0x2546,0x2539,
    0x252c,0x251e,0x2511,0x2503,0x24f6,0x24e8,0x24da,0x24cb,
    0x24bd,0x24ae,0x249f,0x2491,0x2481,0x2472,0x2463,0x2453,
    0x2443,0x2433,0x2423,0x2413,0x2403,0x23f2,0x23e1,0x23d1,
    0x23bf,0x23ae,0x239d,0x238b,0x237a,0x2368,0x2356,0x2344,
    0x2332,0x231f,0x230d,0x22fa,0x22e7,0x22d4,0x22c1,0x22ae,
    0x229a,0x2286,0x2273,0x225f,0x224b,0x2237,0x2222,0x220e,
    0x21f9,0x21e4,0x21d0,0x21bb,0x21a5,0x2190,0x217b,0x2165,
    0x214f,0x213a,0x2124,0x210d,0x20f7,0x20e1,0x20ca,0x20b4,
    0x209d,0x2086,0x206f,0x2058,0x2041,0x2029,0x2012,0x1ffa,
    0x1fe3,0x1fcb,0x1fb3,0x1f9b,0x1f83,0x1f6a,0x1f52,0x1f39,
    0x1f21,0x1f08,0x1eef,0x1ed6,0x1ebd,0x1ea4,0x1e8a,0x1e71,
    0x1e57,0x1e3e,0x1e24,0x1e0a,0x1df0,0x1dd6,0x1dbc,0x1da2,
    0x1d88,0x1d6d,0x1d53,0x1d38,0x1d1d,0x1d03,0x1ce8,0x1ccd,
    0x1cb2,0x1c96,0x1c7b,0x1c60,0x1c44,0x1c29,0x1c0d,0x1bf2,
    0x1bd6,0x1bba,0x1b9e,0x1b82,0x1b66,0x1b4a,0x1b2e,0x1b11,
    0x1af5,0x1ad9,0x1abc,0x1a9f,0x1a83,0x1a66,0x1a49,0x1a2c,
    0x1a10,0x19f3,0x19d6,0x19b8,0x199b,0x197e,0x1961,0x1943,
    0x1926,0x1909,0x18eb,0x18ce,0x18b0,0x1892,0x1875,0x1857,
    0x1839,0x181b,0x17fd,0x17e0,0x17c2,0x17a4,0x1786,0x1767,
    0x1749,0x172b,0x170d,0x16ef,0x16d1,0x16b2,0x1694,0x1676,
    0x1657,0x1639,0x161a,0x15fc,0x15dd,0x15bf,0x15a0,0x1582,
    0x1563,0x1545,0x1526,0x1507,0x14e9,0x14ca,0x14ac,0x148d,
    0x146e,0x1450,0x1431,0x1412,0x13f3,0x13d5,0x13b6,0x1397,
    0x1379,0x135a,0x133b,0x131d,0x12fe,0x12df,0x12c0,0x12a2,
    0x1283,0x1264,0x1246,0x1227,0x1209,0x11ea,0x11cb,0x11ad,
    0x118e,0x1170,0x1151,0x1133,0x1114,0x10f6,0x10d7,0x10b9,
    0x109a,0x107c,0x105e,0x103f,0x1021,0x1003,0xfe5,0xfc7,
    0xfa9,0xf8a,0xf6c,0xf4e,0xf30,0xf13,0xef5,0xed7,
    0xeb9,0xe9b,0xe7e,0xe60,0xe42,0xe25,0xe07,0xdea,
    0xdcd,0xdaf,0xd92,0xd75,0xd58,0xd3a,0xd1d,0xd00,
    0xce4,0xcc7,0xcaa,0xc8d,0xc71,0xc54,0xc37,0xc1b,
    0xbff,0xbe2,0xbc6,0xbaa,0xb8e,0xb72,0xb56,0xb3a,
    0xb1e,0xb03,0xae7,0xacc,0xab0,0xa95,0xa7a,0xa5e,
    0xa43,0xa28,0xa0d,0x9f3,0x9d8,0x9bd,0x9a3,0x988,
    0x96e,0x954,0x93a,0x920,0x906,0x8ec,0x8d2,0x8b9,
    0x89f,0x886,0x86c,0x853,0x83a,0x821,0x808,0x7ef,
    0x7d7,0x7be,0x7a6,0x78d,0x775,0x75d,0x745,0x72d,
    0x716,0x6fe,0x6e7,0x6cf,0x6b8,0x6a1,0x68a,0x673,
    0x65c,0x646,0x62f,0x619,0x603,0x5ec,0x5d6,0x5c1,
    0x5ab,0x595,0x580,0x56b,0x555,0x540,0x52c,0x517,
    0x502,0x4ee,0x4d9,0x4c5,0x4b1,0x49d,0x48a,0x476,
    0x462,0x44f,0x43c,0x429,0x416,0x403,0x3f1,0x3de,
    0x3cc,0x3ba,0x3a8,0x396,0x385,0x373,0x362,0x351,
    0x33f,0x32f,0x31e,0x30d,0x2fd,0x2ed,0x2dd,0x2cd,
    0x2bd,0x2ad,0x29e,0x28f,0x27f,0x271,0x262,0x253,
    0x245,0x236,0x228,0x21a,0x20d,0x1ff,0x1f2,0x1e4,
    0x1d7,0x1ca,0x1bd,0x1b1,0x1a4,0x198,0x18c,0x180,
    0x175,0x169,0x15e,0x152,0x147,0x13d,0x132,0x127,
    0x11d,0x113,0x109,0xff,0xf6,0xec,0xe3,0xda,
    0xd1,0xc8,0xc0,0xb8,0xaf,0xa7,0xa0,0x98,
    0x91,0x89,0x82,0x7b,0x75,0x6e,0x68,0x62,
    0x5c,0x56,0x50,0x4b,0x46,0x41,0x3c,0x37,
    0x33,0x2f,0x2b,0x27,0x23,0x1f,0x1c,0x19,
    0x16,0x13,0x11,0xe,0xc,0xa,0x8,0x6,
    0x5,0x4,0x3,0x2,0x1,0x0,0x0,0x0,
    0x0,0x0,0x1,0x1,0x2,0x3,0x4,0x6,
    0x7,0x9,0xb,0xd,0xf,0x12,0x15,0x17,
    0x1a,0x1e,0x21,0x25,0x29,0x2d,0x31,0x35,
    0x3a,0x3e,0x43,0x48,0x4e,0x53,0x59,0x5f,
    0x65,0x6b,0x71,0x78,0x7f,0x86,0x8d,0x94,
    0x9c,0xa3,0xab,0xb3,0xbc,0xc4,0xcd,0xd5,
    0xde,0xe8,0xf1,0xfa,0x104,0x10e,0x118,0x122,
    0x12d,0x137,0x142,0x14d,0x158,0x163,0x16f,0x17a,
    0x186,0x192,0x19e,0x1ab,0x1b7,0x1c4,0x1d1,0x1de,
    0x1eb,0x1f8,0x206,0x213,0x221,0x22f,0x23e,0x24c,
    0x25a,0x269,0x278,0x287,0x296,0x2a6,0x2b5,0x2c5,
    0x2d5,0x2e5,0x2f5,0x305,0x316,0x326,0x337,0x348,
    0x359,0x36a,0x37c,0x38d,0x39f,0x3b1,0x3c3,0x3d5,
    0x3e8,0x3fa,0x40d,0x420,0x432,0x446,0x459,0x46c,
    0x480,0x493,0x4a7,0x4bb,0x4cf,0x4e4,0x4f8,0x50d,
    0x521,0x536,0x54b,0x560,0x575,0x58b,0x5a0,0x5b6,
    0x5cc,0x5e1,0x5f7,0x60e,0x624,0x63a,0x651,0x668,
    0x67e,0x695,0x6ac,0x6c4,0x6db,0x6f2,0x70a,0x721,
    0x739,0x751,0x769,0x781,0x79a,0x7b2,0x7ca,0x7e3,
    0x7fc,0x815,0x82d,0x847,0x860,0x879,0x892,0x8ac,
    0x8c5,0x8df,0x8f9,0x913,0x92d,0x947,0x961,0x97b,
    0x996,0x9b0,0x9cb,0x9e5,0xa00,0xa1b,0xa36,0xa51,
    0xa6c,0xa87,0xaa3,0xabe,0xad9,0xaf5,0xb11,0xb2c,
    0xb48,0xb64,0xb80,0xb9c,0xbb8,0xbd4,0xbf0,0xc0d,
    0xc29,0xc46,0xc62,0xc7f,0xc9c,0xcb8,0xcd5,0xcf2,
    0xd0f,0xd2c,0xd49,0xd66,0xd83,0xda1,0xdbe,0xddb,
    0xdf9,0xe16,0xe34,0xe51,0xe6f,0xe8c,0xeaa,0xec8,
    0xee6,0xf04,0xf21,0xf3f,0xf5d,0xf7b,0xf9a,0xfb8,
    0xfd6,0xff4,0x1012,0x1030,0x104f,0x106d,0x108b,0x10aa,
    0x10c8,0x10e6,0x1105,0x1123,0x1142,0x1160,0x117f,0x119d,
    0x11bc,0x11db,0x11f9,0x1218,0x1236,0x1255,0x1274,0x1292,
    0x12b1,0x12d0,0x12ee,0x130d,0x132c,0x134b,0x1369,0x1388
  };

//Triangle waveform template
//created with https://www.daycounter.com/Calculators/Sine-Generator-Calculator.phtml
const byte triangleWave[] = {
      0x14,0x27,0x3b,0x4e,0x62,0x75,0x89,0x9c,
    0xb0,0xc4,0xd7,0xeb,0xfe,0x112,0x125,0x139,
    0x14c,0x160,0x173,0x187,0x19b,0x1ae,0x1c2,0x1d5,
    0x1e9,0x1fc,0x210,0x223,0x237,0x24b,0x25e,0x272,
    0x285,0x299,0x2ac,0x2c0,0x2d3,0x2e7,0x2fa,0x30e,
    0x322,0x335,0x349,0x35c,0x370,0x383,0x397,0x3aa,
    0x3be,0x3d2,0x3e5,0x3f9,0x40c,0x420,0x433,0x447,
    0x45a,0x46e,0x481,0x495,0x4a9,0x4bc,0x4d0,0x4e3,
    0x4f7,0x50a,0x51e,0x531,0x545,0x559,0x56c,0x580,
    0x593,0x5a7,0x5ba,0x5ce,0x5e1,0x5f5,0x608,0x61c,
    0x630,0x643,0x657,0x66a,0x67e,0x691,0x6a5,0x6b8,
    0x6cc,0x6e0,0x6f3,0x707,0x71a,0x72e,0x741,0x755,
    0x768,0x77c,0x78f,0x7a3,0x7b7,0x7ca,0x7de,0x7f1,
    0x805,0x818,0x82c,0x83f,0x853,0x867,0x87a,0x88e,
    0x8a1,0x8b5,0x8c8,0x8dc,0x8ef,0x903,0x916,0x92a,
    0x93e,0x951,0x965,0x978,0x98c,0x99f,0x9b3,0x9c6,
    0x9da,0x9ee,0xa01,0xa15,0xa28,0xa3c,0xa4f,0xa63,
    0xa76,0xa8a,0xa9d,0xab1,0xac5,0xad8,0xaec,0xaff,
    0xb13,0xb26,0xb3a,0xb4d,0xb61,0xb75,0xb88,0xb9c,
    0xbaf,0xbc3,0xbd6,0xbea,0xbfd,0xc11,0xc25,0xc38,
    0xc4c,0xc5f,0xc73,0xc86,0xc9a,0xcad,0xcc1,0xcd4,
    0xce8,0xcfc,0xd0f,0xd23,0xd36,0xd4a,0xd5d,0xd71,
    0xd84,0xd98,0xdac,0xdbf,0xdd3,0xde6,0xdfa,0xe0d,
    0xe21,0xe34,0xe48,0xe5b,0xe6f,0xe83,0xe96,0xeaa,
    0xebd,0xed1,0xee4,0xef8,0xf0b,0xf1f,0xf33,0xf46,
    0xf5a,0xf6d,0xf81,0xf94,0xfa8,0xfbb,0xfcf,0xfe2,
    0xff6,0x100a,0x101d,0x1031,0x1044,0x1058,0x106b,0x107f,
    0x1092,0x10a6,0x10ba,0x10cd,0x10e1,0x10f4,0x1108,0x111b,
    0x112f,0x1142,0x1156,0x1169,0x117d,0x1191,0x11a4,0x11b8,
    0x11cb,0x11df,0x11f2,0x1206,0x1219,0x122d,0x1241,0x1254,
    0x1268,0x127b,0x128f,0x12a2,0x12b6,0x12c9,0x12dd,0x12f0,
    0x1304,0x1318,0x132b,0x133f,0x1352,0x1366,0x1379,0x138d,
    0x13a0,0x13b4,0x13c8,0x13db,0x13ef,0x1402,0x1416,0x1429,
    0x143d,0x1450,0x1464,0x1477,0x148b,0x149f,0x14b2,0x14c6,
    0x14d9,0x14ed,0x1500,0x1514,0x1527,0x153b,0x154f,0x1562,
    0x1576,0x1589,0x159d,0x15b0,0x15c4,0x15d7,0x15eb,0x15fe,
    0x1612,0x1626,0x1639,0x164d,0x1660,0x1674,0x1687,0x169b,
    0x16ae,0x16c2,0x16d6,0x16e9,0x16fd,0x1710,0x1724,0x1737,
    0x174b,0x175e,0x1772,0x1786,0x1799,0x17ad,0x17c0,0x17d4,
    0x17e7,0x17fb,0x180e,0x1822,0x1835,0x1849,0x185d,0x1870,
    0x1884,0x1897,0x18ab,0x18be,0x18d2,0x18e5,0x18f9,0x190d,
    0x1920,0x1934,0x1947,0x195b,0x196e,0x1982,0x1995,0x19a9,
    0x19bc,0x19d0,0x19e4,0x19f7,0x1a0b,0x1a1e,0x1a32,0x1a45,
    0x1a59,0x1a6c,0x1a80,0x1a94,0x1aa7,0x1abb,0x1ace,0x1ae2,
    0x1af5,0x1b09,0x1b1c,0x1b30,0x1b43,0x1b57,0x1b6b,0x1b7e,
    0x1b92,0x1ba5,0x1bb9,0x1bcc,0x1be0,0x1bf3,0x1c07,0x1c1b,
    0x1c2e,0x1c42,0x1c55,0x1c69,0x1c7c,0x1c90,0x1ca3,0x1cb7,
    0x1cca,0x1cde,0x1cf2,0x1d05,0x1d19,0x1d2c,0x1d40,0x1d53,
    0x1d67,0x1d7a,0x1d8e,0x1da2,0x1db5,0x1dc9,0x1ddc,0x1df0,
    0x1e03,0x1e17,0x1e2a,0x1e3e,0x1e51,0x1e65,0x1e79,0x1e8c,
    0x1ea0,0x1eb3,0x1ec7,0x1eda,0x1eee,0x1f01,0x1f15,0x1f29,
    0x1f3c,0x1f50,0x1f63,0x1f77,0x1f8a,0x1f9e,0x1fb1,0x1fc5,
    0x1fd8,0x1fec,0x2000,0x2013,0x2027,0x203a,0x204e,0x2061,
    0x2075,0x2088,0x209c,0x20b0,0x20c3,0x20d7,0x20ea,0x20fe,
    0x2111,0x2125,0x2138,0x214c,0x215f,0x2173,0x2187,0x219a,
    0x21ae,0x21c1,0x21d5,0x21e8,0x21fc,0x220f,0x2223,0x2237,
    0x224a,0x225e,0x2271,0x2285,0x2298,0x22ac,0x22bf,0x22d3,
    0x22e7,0x22fa,0x230e,0x2321,0x2335,0x2348,0x235c,0x236f,
    0x2383,0x2396,0x23aa,0x23be,0x23d1,0x23e5,0x23f8,0x240c,
    0x241f,0x2433,0x2446,0x245a,0x246e,0x2481,0x2495,0x24a8,
    0x24bc,0x24cf,0x24e3,0x24f6,0x250a,0x251d,0x2531,0x2545,
    0x2558,0x256c,0x257f,0x2593,0x25a6,0x25ba,0x25cd,0x25e1,
    0x25f5,0x2608,0x261c,0x262f,0x2643,0x2656,0x266a,0x267d,
    0x2691,0x26a4,0x26b8,0x26cc,0x26df,0x26f3,0x2706,0x2710,
    0x2706,0x26f3,0x26df,0x26cc,0x26b8,0x26a4,0x2691,0x267d,
    0x266a,0x2656,0x2643,0x262f,0x261c,0x2608,0x25f5,0x25e1,
    0x25cd,0x25ba,0x25a6,0x2593,0x257f,0x256c,0x2558,0x2545,
    0x2531,0x251d,0x250a,0x24f6,0x24e3,0x24cf,0x24bc,0x24a8,
    0x2495,0x2481,0x246e,0x245a,0x2446,0x2433,0x241f,0x240c,
    0x23f8,0x23e5,0x23d1,0x23be,0x23aa,0x2396,0x2383,0x236f,
    0x235c,0x2348,0x2335,0x2321,0x230e,0x22fa,0x22e7,0x22d3,
    0x22bf,0x22ac,0x2298,0x2285,0x2271,0x225e,0x224a,0x2237,
    0x2223,0x220f,0x21fc,0x21e8,0x21d5,0x21c1,0x21ae,0x219a,
    0x2187,0x2173,0x215f,0x214c,0x2138,0x2125,0x2111,0x20fe,
    0x20ea,0x20d7,0x20c3,0x20b0,0x209c,0x2088,0x2075,0x2061,
    0x204e,0x203a,0x2027,0x2013,0x2000,0x1fec,0x1fd8,0x1fc5,
    0x1fb1,0x1f9e,0x1f8a,0x1f77,0x1f63,0x1f50,0x1f3c,0x1f29,
    0x1f15,0x1f01,0x1eee,0x1eda,0x1ec7,0x1eb3,0x1ea0,0x1e8c,
    0x1e79,0x1e65,0x1e51,0x1e3e,0x1e2a,0x1e17,0x1e03,0x1df0,
    0x1ddc,0x1dc9,0x1db5,0x1da2,0x1d8e,0x1d7a,0x1d67,0x1d53,
    0x1d40,0x1d2c,0x1d19,0x1d05,0x1cf2,0x1cde,0x1cca,0x1cb7,
    0x1ca3,0x1c90,0x1c7c,0x1c69,0x1c55,0x1c42,0x1c2e,0x1c1b,
    0x1c07,0x1bf3,0x1be0,0x1bcc,0x1bb9,0x1ba5,0x1b92,0x1b7e,
    0x1b6b,0x1b57,0x1b43,0x1b30,0x1b1c,0x1b09,0x1af5,0x1ae2,
    0x1ace,0x1abb,0x1aa7,0x1a94,0x1a80,0x1a6c,0x1a59,0x1a45,
    0x1a32,0x1a1e,0x1a0b,0x19f7,0x19e4,0x19d0,0x19bc,0x19a9,
    0x1995,0x1982,0x196e,0x195b,0x1947,0x1934,0x1920,0x190d,
    0x18f9,0x18e5,0x18d2,0x18be,0x18ab,0x1897,0x1884,0x1870,
    0x185d,0x1849,0x1835,0x1822,0x180e,0x17fb,0x17e7,0x17d4,
    0x17c0,0x17ad,0x1799,0x1786,0x1772,0x175e,0x174b,0x1737,
    0x1724,0x1710,0x16fd,0x16e9,0x16d6,0x16c2,0x16ae,0x169b,
    0x1687,0x1674,0x1660,0x164d,0x1639,0x1626,0x1612,0x15fe,
    0x15eb,0x15d7,0x15c4,0x15b0,0x159d,0x1589,0x1576,0x1562,
    0x154f,0x153b,0x1527,0x1514,0x1500,0x14ed,0x14d9,0x14c6,
    0x14b2,0x149f,0x148b,0x1477,0x1464,0x1450,0x143d,0x1429,
    0x1416,0x1402,0x13ef,0x13db,0x13c8,0x13b4,0x13a0,0x138d,
    0x1379,0x1366,0x1352,0x133f,0x132b,0x1318,0x1304,0x12f0,
    0x12dd,0x12c9,0x12b6,0x12a2,0x128f,0x127b,0x1268,0x1254,
    0x1241,0x122d,0x1219,0x1206,0x11f2,0x11df,0x11cb,0x11b8,
    0x11a4,0x1191,0x117d,0x1169,0x1156,0x1142,0x112f,0x111b,
    0x1108,0x10f4,0x10e1,0x10cd,0x10ba,0x10a6,0x1092,0x107f,
    0x106b,0x1058,0x1044,0x1031,0x101d,0x100a,0xff6,0xfe2,
    0xfcf,0xfbb,0xfa8,0xf94,0xf81,0xf6d,0xf5a,0xf46,
    0xf33,0xf1f,0xf0b,0xef8,0xee4,0xed1,0xebd,0xeaa,
    0xe96,0xe83,0xe6f,0xe5b,0xe48,0xe34,0xe21,0xe0d,
    0xdfa,0xde6,0xdd3,0xdbf,0xdac,0xd98,0xd84,0xd71,
    0xd5d,0xd4a,0xd36,0xd23,0xd0f,0xcfc,0xce8,0xcd4,
    0xcc1,0xcad,0xc9a,0xc86,0xc73,0xc5f,0xc4c,0xc38,
    0xc25,0xc11,0xbfd,0xbea,0xbd6,0xbc3,0xbaf,0xb9c,
    0xb88,0xb75,0xb61,0xb4d,0xb3a,0xb26,0xb13,0xaff,
    0xaec,0xad8,0xac5,0xab1,0xa9d,0xa8a,0xa76,0xa63,
    0xa4f,0xa3c,0xa28,0xa15,0xa01,0x9ee,0x9da,0x9c6,
    0x9b3,0x99f,0x98c,0x978,0x965,0x951,0x93e,0x92a,
    0x916,0x903,0x8ef,0x8dc,0x8c8,0x8b5,0x8a1,0x88e,
    0x87a,0x867,0x853,0x83f,0x82c,0x818,0x805,0x7f1,
    0x7de,0x7ca,0x7b7,0x7a3,0x78f,0x77c,0x768,0x755,
    0x741,0x72e,0x71a,0x707,0x6f3,0x6e0,0x6cc,0x6b8,
    0x6a5,0x691,0x67e,0x66a,0x657,0x643,0x630,0x61c,
    0x608,0x5f5,0x5e1,0x5ce,0x5ba,0x5a7,0x593,0x580,
    0x56c,0x559,0x545,0x531,0x51e,0x50a,0x4f7,0x4e3,
    0x4d0,0x4bc,0x4a9,0x495,0x481,0x46e,0x45a,0x447,
    0x433,0x420,0x40c,0x3f9,0x3e5,0x3d2,0x3be,0x3aa,
    0x397,0x383,0x370,0x35c,0x349,0x335,0x322,0x30e,
    0x2fa,0x2e7,0x2d3,0x2c0,0x2ac,0x299,0x285,0x272,
    0x25e,0x24b,0x237,0x223,0x210,0x1fc,0x1e9,0x1d5,
    0x1c2,0x1ae,0x19b,0x187,0x173,0x160,0x14c,0x139,
    0x125,0x112,0xfe,0xeb,0xd7,0xc4,0xb0,0x9c,
    0x89,0x75,0x62,0x4e,0x3b,0x27,0x14,0x0
  };

  //Tremolo with sin waveform.
  void tremoloSin(int *input){
      sinWaveCounter++;
      if(sinWaveCounter >= 1000){
          sinWaveCounter = 0;
        }
      *input = map(*input,0,6000,0,sinWave[sinWaveCounter]);
    }

  //Tremolo with triangle waveform
  void tremoloTriangle(int *input){
      triWaveCounter++;
      if(triWaveCounter >= 1000){
          triWaveCounter = 0;
        }
      *input = map(*input,0,6000,0,triangleWave[triWaveCounter]);
    }

  //Creates sin output wave
  void sinWaveFormGenerator(int *input){
      sinWaveCounter++;
      if(sinWaveCounter >= 1000){
          sinWaveCounter = 0;
        }
      *input = sinWave[sinWaveCounter];
    }

  //Creates triangle output wave
  void triWaveFormGenerator(int *input){
      triWaveCounter++;
      if(triWaveCounter >= 1000){
          triWaveCounter = 0;
        }
      *input = triangleWave[triWaveCounter];
    }
